import axios from 'axios';
import {API_NEW_VERSION} from '../api';

export const getAllStandardPriceVersionLinePrices = params => {
  return axios.get(API_NEW_VERSION + 'standard-price-version-line-prices', {params: params});
};

export const createStandardPriceVersionLinePrice = (id, params) => {
  return axios.post(API_NEW_VERSION + 'standard-price-version-lines/' + id + '/standard-price-version-line-prices', params);
};

export const updateStandardPriceVersionLinePrice = params => {
  return axios.put(API_NEW_VERSION + 'standard-price-version-line-prices', params);
};

export const getStandardPriceVersionLinePrice = id => {
  return axios.get(API_NEW_VERSION + 'standard-price-version-line-prices/' + id);
};

export const deleteStandardPriceVersionLinePrice = id => {
  return axios.delete(API_NEW_VERSION + 'standard-price-version-line-prices/' + id);
};
